package com.bread.bapiclientstater;

import com.bread.bapiclientstater.client.BApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("bapi.client")
@ComponentScan
@Data
public class BApiClientConfig {

    private String accessKey;
    private String secretKey;

    @Bean
    public BApiClient bApiClient(){
        return new BApiClient(accessKey,secretKey);
    }
}
